package br.pucrio.inf.les.genarch.core.project.navigation.visitors.ast;

import org.eclipse.jdt.core.dom.IBinding;
import org.eclipse.jdt.core.dom.IVariableBinding;
import org.eclipse.jdt.core.dom.MethodDeclaration;
import org.eclipse.jdt.core.dom.SimpleName;

public class ASTBinding {
	private IBinding iBinding = null;
	private MethodDeclaration methodParent = null;
	private int start;
	private int end;
	
	public ASTBinding(IBinding iBinding, MethodDeclaration method, int start, int end){
		this.iBinding = iBinding;
		this.methodParent = method;		
		this.setStart(start);
		this.setEnd(end);
	}
	
	public IBinding getIBinding() {
		return this.iBinding;
	}
	public void setIBinding(IBinding iBinding) {
		this.iBinding = iBinding;
	}
	public MethodDeclaration getMethodParent() {
		return methodParent;
	}
	public void setMethodParent(MethodDeclaration method) {
		this.methodParent = method;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getStart() {
		return start;
	}

	public void setEnd(int end) {
		this.end = end;
	}

	public int getEnd() {
		return end;
	}
}
